/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tvunetworks.dao;

import com.tvunetworks.model.Item;
import com.tvunetworks.model.Order;
import java.util.List;

/**
 *
 * @author michael
 */
public interface ItemDao extends GenericDao<Item, String> {

    /**
     * 
     * @param order
     */
    void updateAllQuantitiesFromOrder(Order order);

    /**
     * 
     * @param itemId
     * @return
     */
    boolean isItemInStock(String itemId);

    /**
     * 
     * @param productId
     * @return
     */
    List<Item> getItemListByProduct(String productId);

    /**
     * 
     * @param itemId
     * @return
     */
    Item getItem(String itemId);
}
